<?php
session_start();
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once 'database/profile_handler.php';
require_once 'database/photo_handler.php';
require_once 'database/wall_handler.php';
require_once 'database/follower_handler.php';

$u = $_SESSION['Username'];

    $query = "SELECT count(wall_id) as jum FROM wall_post WHERE usr_tujuan='$u'";
    //$u = $_SESSION['Username'];
    $p = new profile_handler();

    $p->exec_q($query, "jum");

    $j = $p->result[0];
    
    echo $j;
?>
